package com.crm.jdy.service.client;

import com.crm.jdy.common.pojo.FileManage;
import com.crm.jdy.common.mapper.FileManageMapper;
import org.apache.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**   
 * @Description:(文件管理服务实现)
 *
 * @version: V1.0
 * @author: kong
 * 
 */
@Service(version = "${service.version}")
@Component
public class FileManageServiceImpl  extends ServiceImpl<FileManageMapper,FileManage> implements FileManageService  {


    @Autowired
    FileManageMapper fileManageDao;


    @Override
    public boolean removeFileManage(String fid) {
        return fileManageDao.deleteById(fid) > 0;
    }

    @Override
    public boolean addFileManage(FileManage fileManage) {
        return fileManageDao.insert(fileManage) > 0;
    }

    @Override
    public boolean updateFileManage(FileManage fileManage) {
        return fileManageDao.updateById(fileManage) > 0;
    }

    @Override
    public List<FileManage> seleteFileManage(FileManage fileManage) {
        return fileManageDao.seleteFileManage(fileManage);
    }
}